package lab_1;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * 
 * @author grp02 - Pascal Charreix and Meike Paetz
 *
 * This is the RMI interface which represents a Holiday Package.
 */
public interface HPackage extends Remote {

    /**
     * gives all information about Holiday Package
     */
    public String getFullInformation() throws RemoteException;

    /**
     * returns the reservation number of the Holiday Package
     */
    public int getReservationNbr() throws RemoteException;

    /**
     * reserves a Holiday Package
     */
    public int reserve() throws RemoteException;

    /**
     * cancels a Holiday Package
     */
    public void cancel() throws RemoteException;

    /**
     * unlocks a Holiday Package
     */
    public void unlock() throws RemoteException;

    /**
     * locks a Holiday Package
     */
    public void lock() throws RemoteException;
}
